<template>
  <div>
    <div class="list-item" v-for='(item,index) of list' :key='index'>
      <div class="border-bottom">
        <span class="mp-ticketype-ticket"></span>
        {{item.title}}
      </div>
      <DetailList :list='item.children' class="child-item"></DetailList>
    </div>
  </div>
</template>

<script>
export default {
  name: 'DetailList',
  props: {
    list: Array
  }
}

</script>

<style lang='stylus' scoped>
  @import '~styles/varibles.styl'
  .list-item
    line-height 1rem
    .child-item
      position relative
      left .5rem
    .mp-ticketype-ticket
      position relative
      left 0.15rem
      top: 0.08rem
      display: inline-block
      width: .36rem
      height: .36rem
      background: url(//s.qunarzz.com/piao/image/touch/sight/detail.png) 0 -.45rem no-repeat
      margin-right: .1rem
      background-size: .4rem 3rem
</style>
